<?php

class Authentication_Authentication  {
	
	public static function isAuthenticated ()  {
		
		
		
		if (!isset($_SESSION['id']))  {
			LoginController::getMainWindow();
		}
		else  {
			if (isset($_GET['logoff']))  {
				$_SESSION = array();
				session_destroy();
			}
			else  {
				MainController::getMainWindow();
			}
		}
	}
	
}